<ion-header-bar class="bar-top text-center">
    <div class="buttons">
        <nav-button class="back" ng-click="back('docAccountset')"></nav-button>
    </div>
    <h1 class="title">个人信息详情</h1>
</ion-header-bar>
<ion-view>
    <ion-content scroll="true" class="user-info">
        <div class="head-div" ng-click="getAvatar();">
            <div class="avata">
                <img ng-src="{{downloadImg(vm.user.headImgUrl)}}"/>
            </div>
        </div>
        <div class="input-div">
            <div class="ipt-item row">
                <div class="col col-33 title">真实姓名</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-model="vm.user.name" />
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.name"></label>
                </div>
            </div>
            <div class="ipt-item row" >
                <div class="col col-33 title">所在医院</div>
                <div class="col col-67" ng-if="vm.edit" ng-click="goDocInfo('register-doc-info-hospital','userInfo-doc')">
                    <label class="view-text" ng-bind="vm.user.hospitalName"></label>
                </div>
                <div class="col col-67" ng-if="!vm.edit">
                    <label class="view-text" ng-bind="vm.user.hospitalName"></label>
                </div>
            </div>
            <div class="ipt-item row" >
                <div class="col col-33 title">所在科室</div>
                <div class="col col-67" ng-if="vm.edit" ng-click="goDocInfo('register-doc-info-depart','userInfo-doc')">
                    <label class="view-text" ng-bind="vm.user.branchName"></label>
                </div>
                <div class="col col-67" ng-if="!vm.edit" >
                    <label class="view-text" ng-bind="vm.user.branchName"></label>
                </div>
            </div>
            <div class="ipt-item row" >
                <div class="col col-33 title">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称</div>
                <div class="col col-67" ng-if="vm.edit" ng-click="goDocInfo('register-doc-info-position','userInfo-doc')">
                    <label class="view-text" ng-bind="vm.user.titleName"></label>
                </div>
                <div class="col col-67"  ng-if="!vm.edit">
                    <label class="view-text" ng-bind="vm.user.titleName"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱</div>
                <div class="col col-67">
                    <input type="text" ng-show="vm.edit" ng-model="vm.user.email" />
                    <label class="view-text" ng-show="!vm.edit" ng-bind="vm.user.email"></label>
                </div>
            </div>
            <div class="ipt-item row">
                <div class="col col-33 title">科室电话</div>
                <div class="col col-67" ng-show="vm.edit">
                    <input type="text" ng-model="vm.user.deptPhone" ng-show="vm.edit" />
                </div>
                <div class="col col-67" ng-show="!vm.edit">
                    <label class="view-text" ng-bind="vm.user.deptPhone"></label>
                </div>
            </div>
           
        </div>
        <div class="input-div">
            <div class="row ipt-item">
                <div class="col col-100 title">个人信息</div>
            </div>
            <div class=" row ipt-item">
                <div class="col col-100">
                    <textarea ng-show="vm.edit" ng-model="vm.user.info"></textarea>
                    <label class="view-text left" ng-show="!vm.edit" ng-bind="vm.user.info"></label>
                </div>
            </div>
        </div>
        <div class="input-div">
            <div class="row ipt-item">
                <div class="col col-100 title">个人擅长</div>
            </div>
            <div class=" row ipt-item">
                <div class="col col-100">
                    <textarea ng-show="vm.edit" ng-model="vm.user.specialty"></textarea>
                    <label class="view-text left" ng-show="!vm.edit" ng-bind="vm.user.specialty"></label>
                </div>
            </div>
        </div>

         <div class="button-submit" ng-show="!vm.edit" ng-click="vm.edit=true">修改</div>
        <div class="button-submit" ng-show="vm.edit" ng-click="save();">完成</div>
    </ion-content>
</ion-view>